//
//  CheckListItem.m
//  CheckList
//
//  Created by chen on 15/8/3.
//  Copyright (c) 2015年 ZhangXM. All rights reserved.
//

#import "CheckListItem.h"

@implementation CheckListItem


- (void) toggleChecked{

    self.Checked = !self.Checked;
}

- (id) initWithCoder:(NSCoder *)aDecoder{
    if ((self = [super init])) {
        self.text = [aDecoder decodeObjectForKey:@"Text"];
        self.Checked = [aDecoder decodeBoolForKey:@"Checked"];
    }
    return self;
}

- (void) encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.text forKey:@"Text"];
    [aCoder encodeBool:self.Checked forKey:@"Checked"];
}


@end
